import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:test_for_pageview_lifecycle/page_item_stateful.dart';
import 'package:test_for_pageview_lifecycle/video_urls.dart';
import 'package:video_player/video_player.dart';
import 'package:visibility_detector/visibility_detector.dart';

class HomePageView extends StatelessWidget {
  HomePageView({super.key});
  // final PageItemController controller = Get.put(PageItemController());
  @override
  Widget build(BuildContext context) {
    return PageView.builder(
      scrollDirection: Axis.vertical,
      itemBuilder: (context, index) {
        return PageTestItem(
          key: UniqueKey(),
          index: index,
        );
      },
    );
  }
}
